<?php

class discobelle_scraper extends BlogScraper
{
    function __construct()
    {
        parent::__construct('discobelle');
    }

    function getPostLinks()
    {
        return $this->xpath->query("//h2//a");   
        
    }    
}

class discobelle_post_scraper extends PostScraper
{
    

    function getTitle()
    {
        $text = $this->xpath->query("//h2//a")->item(0)->nodeValue;

        return $text;
    }
    
    function getLink()
    {
        $text = $this->xpath->query("//h2//a")->item(0)->getAttribute('href'); 

        return $text;
    }
       
    function getDate($post)
    {
        $parts = explode('/', $this->url);
        $date = $parts[3].'-'.$parts[4].'-'.$parts[5];


        $date = date('Y-m-d', strtotime($date));
        return $date;
             
    }
    
    
}

?>